
package com.mephi.model.profile;


import com.mephi.interfaces.GameList;
import com.mephi.interfaces.SimpleProfile;


/**
 * A simple implementation of Profile.
 * @author mephisto
 * 1.0 2011-05-26
 */
public class SimpleProfileImpl implements SimpleProfile
{

	/**
	 * 
	 * @param name the name to set
	 */
	public SimpleProfileImpl(String name)
	{
		this(name, null);
	}
	
	/**
	 * 
	 * @param name the name to set
	 * @param gameList the gameList to set
	 */
	public SimpleProfileImpl(String name, GameList gameList)
	{
		setName(name);
		setGameList(gameList);
	}
	
	@Override
	public void clearGameList()
	{
		gameList = null;	
	}

	@Override
	public GameList getGameList()
	{
		return gameList;
	}

	@Override
	public String getName()
	{
		return name;
	}

	@Override
	public void setGameList(GameList gameList)
	{
		this.gameList = gameList;
	}

	@Override
	public void setName(String name)
	{
		this.name = name;
	}

	
	private String name;
	private GameList gameList;
}
